package com.arellomobile.android.push.utils.notification;

import android.app.Notification;
import android.content.Context;
import android.graphics.Bitmap;
import android.os.Bundle;
import com.arellomobile.android.push.preference.SoundType;
import com.arellomobile.android.push.preference.VibrateType;
import com.pushwoosh.support.v4.app.NotificationCompat.BigTextStyle;
import com.pushwoosh.support.v4.app.NotificationCompat.Builder;

public class SimpleNotificationFactory extends BaseNotificationFactory
{
  private static final int sImageHeight = 128;

  public SimpleNotificationFactory(Context paramContext, Bundle paramBundle, String paramString1, String paramString2, SoundType paramSoundType, VibrateType paramVibrateType)
  {
    super(paramContext, paramBundle, paramString1, paramString2, paramSoundType, paramVibrateType);
  }

  Notification generateNotificationInner(Context paramContext, Bundle paramBundle, String paramString1, String paramString2, String paramString3)
  {
    int i = Helper.tryToGetIconFormStringOrGetFromApplication(paramBundle.getString("i"), paramContext);
    paramContext.getResources();
    String str = paramBundle.getString("ci");
    Bitmap localBitmap = null;
    if (str != null)
      localBitmap = Helper.tryToGetBitmapFromInternet(str, paramContext, 128);
    NotificationCompat.Builder localBuilder = new NotificationCompat.Builder(paramContext);
    localBuilder.setContentTitle(paramString1);
    localBuilder.setContentText(paramString2);
    localBuilder.setTicker(paramString3);
    localBuilder.setWhen(System.currentTimeMillis());
    localBuilder.setStyle(new NotificationCompat.BigTextStyle().bigText(paramString2));
    localBuilder.setSmallIcon(i);
    if (localBitmap != null)
      localBuilder.setLargeIcon(localBitmap);
    return localBuilder.build();
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.arellomobile.android.push.utils.notification.SimpleNotificationFactory
 * JD-Core Version:    0.6.2
 */